package customer_relation_manage;

import java.util.Collections;
import java.util.LinkedList;

public class OrderCustomer {
	/*
	 * 对客户资料进行排序
	 * 按照id/name，升序排列，可能用到collection.sort
	 * 然后输出
	 */
	//对ID进行排序
	public static void orderById(){
		Collections.sort(Init.clist, new CustomerIdComparator());
		LookOver.check();
	}
	
	//对name进行升序排序
	public static void orderByName(){
		Collections.sort(Init.clist, new CustomerNameComparator());
		LookOver.check();
	}

}
